package com.flowerSystem.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.flowerSystem.entity.Order;
import com.flowerSystem.entity.OrderListManager;
import com.flowerSystem.entity.OrderPermition;
import com.flowerSystem.entity.Orderlist;
import com.baomidou.mybatisplus.extension.service.IService;
import com.flowerSystem.util.PageResult;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 鲜花遇上牛战士
 * @since 2023-08-28
 */
public interface OrderlistService extends IService<Orderlist> {

    PageResult orderManagerAll(int pageNum, int pageSize);


    IPage<OrderListManager> productInformPrepaid(Page<OrderListManager> orderListManagerPage);

    IPage<OrderListManager> productInformFinish(Page<OrderListManager> page);

    int productInformTake(int id);

    int productInformDelivery(int id);

    OrderListManager orderListFinishLike(String orderNumber);

//    -----------------------------------------------------------------------------------
    public Order getOrderList(Order order);

    public int deleteOrderList(String order_number);

    public void updateOrderList(Orderlist orderlist);

    public List<OrderPermition> getOrderListbyUser(int userId);

    public void setOrderListTime(String orderNumber);

    public OrderPermition getOrderByOrderNumber(String orderNumber);
}
